﻿using Enter.Admin.Utils;
using Newtonsoft.Json;
using System;

namespace Enter.Admin.Dtoes
{
    public class NoticeModel
    {
        //[Excel(HeaderName = "序号")]
        public long Id { get; set; }
        public long ToUserId { get; set; }
        public long ObjectId { get; set; }
        [Excel(HeaderName = "标题")]
        public string Title { get; set; } = string.Empty;
        [Excel(HeaderName = "内容")]
        public string Note { get; set; } = string.Empty;
        [Excel(HeaderName = "通知日期")]
        [JsonConverter(typeof(DateFormatConverter))]
        public DateTime CreateTime { get; set; } = DateTime.Now;
        public DateTime UpdateTime { get; set; } = DateTime.Now;
        public bool Readed { get; set; }
    }
}
